<!--  -->
<template>

  	<header class="common-header">
			<span class=" back" @click="$router.back()" v-if="isBack">
                <svg class="xl-icon" aria-hidden="true">
                    <use xlink:href="#icon-fanhui"></use>
                  </svg>
             </span>


			<em><slot></slot></em>
	
		</header>

</template>

<script>
export default {
  data() {
    return {};
  },
  props:{
    isBack:{
        default:false,
        type:Boolean
    },
  },
  mounted() {},
  methods: {},
};
</script>
<style lang='scss'>



.common-header{
	position: fixed;
	width: 100%;
	height: 50px;
	background: #39435B;
	line-height: 50px;
	max-width: 750px;
	color: #E1E5EE;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	z-index: 10;
	box-shadow: 0 1px 1px rgba(83,83,83,0.5);
}
.common-header .back{
	float: left;
	margin-left: 10px;
	position: relative;
	z-index: 100;


}
.common-header .back a{
	display: block;
	width: 13px;
	height: 25px;
	
}
.common-header .icon-back{
	background-position:-160px -5px;
}
.common-header .search-brand{
	float: right;
	margin-right: 10px;
}
.common-header .icon-sb{
	background-position:-187px 8px;
	padding-left: 20px;
}
.common-header .xl-icon{
	color: #ffffff;
    font-size:18px
}
.common-header em{
	font-size: 16px;
	font-weight: bold;
	position: absolute;

	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	text-align: center;
	z-index:99
}
</style>